package com.my.study.designPatterns.observerPattern.basic;


public class WeatherStation {

    public static void main(String[] args) {


        WeatherData weatherData = new WeatherData();

        CurrentConditionsDisplay currentConditionsDisplay = new CurrentConditionsDisplay(weatherData);

        StatisticConditionsDisplay statisticConditionsDisplay = new StatisticConditionsDisplay(weatherData);


        weatherData.setMeasurements(10, 30.1F, 20);
        weatherData.setMeasurements(20, 29.1F, 200);
        currentConditionsDisplay.removeSubject();
        weatherData.setMeasurements(30, 45.4F, 2000);


    }
}
